package com.sky.service;

import com.sky.entity.AddressBook;
import org.apache.poi.ss.formula.functions.Address;

import java.util.List;

public interface AddressBookService {

    /**
     * 新增地址
     * @param addressBook
     */
    void add(AddressBook addressBook);

    /**
     *
     * @param userId
     * @return
     */
    List<AddressBook> listByUserId(Long userId);


    AddressBook selectDefault(Long userId);


    void updateById(AddressBook addressBook);


    void deleteById(Long id);

    AddressBook selectById(Long id);


    void setDefalut(AddressBook addressBook);
}
